package Test;

import java.util.ArrayList;
import org.junit.Test;
import DBLayer.DBTrainingCategory;
import ModelLayer.TrainingCategory;

public class TestDBTrainingCategory
{
	DBTrainingCategory dbtc = new DBTrainingCategory();
	ArrayList<TrainingCategory> tclist = dbtc.getAllTrainingCategory(false);

	@Test
	public void testGetAllTrainingCategory() {
	    System.out.println("\nTrainingCategory size : " + tclist.size() + "\n");
	}

	@Test
	public void testSearchTrainingCategoryID() {
		int id = 1;
		while(id <= tclist.size())
		{
			TrainingCategory tc = dbtc.searchTrainingCategoryID(id, false);
			System.out.println("TrainingCategoryID         : " + tc.getTrainingCategoryID());
			System.out.println("Name                       : " + tc.getName());
			System.out.println("TrainingProgramID          : " + tc.getTrainingProgram().getTrainingProgramID());
			System.out.println("TrainingProgramName        : " + tc.getTrainingProgram().getName());
			System.out.println("TrainingProgramCreatorName : " + tc.getTrainingProgram().getCreatorName());
			System.out.println("TrainingProgramPmDate      : " + tc.getTrainingProgram().getPmDate());
			System.out.println("----------------------------------------");
			id++;
		}
	}
/*
	@Test
	public void testSearchTrainingCategoryName() {
		fail("Not yet implemented");
	}

	@Test
	public void testInsertTrainingCategory() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateTrainingCategory() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllTrainingCategory() {
		fail("Not yet implemented");
	}

	@Test
	public void testSearchTrainingCategoryID(){
		fail("Not yet implemented");
	}
*/
}
